@echo off

if exist ..\..\tags\release-%1 goto start1

echo Tag does not exist: %1
goto end


:start1
mkdir dist\LibNFCSigning-%1
cd dist\LibNFCSigning-%1


xcopy /E ..\..\..\..\tags\release-%1\LibNFCSigning LibNFCSigning\

xcopy /E ..\..\..\..\tags\release-%1\SampleAppAMIDlet SampleAppAMIDlet\
xcopy /E ..\..\..\..\tags\release-%1\SampleAppAWebApplication SampleAppAWebApplication\

xcopy /E ..\..\..\..\tags\release-%1\TestLibNFCSigning TestLibNFCSigning\
xcopy /E ..\..\..\..\tags\release-%1\TestLibNFCSigningAlgorithm TestLibNFCSigningAlgorithm\
xcopy /E ..\..\..\..\tags\release-%1\TestLibNFCSigningCertificate TestLibNFCSigningCertificate\
xcopy /E ..\..\..\..\tags\release-%1\TestLibNFCSigningRecord TestLibNFCSigningRecord\

copy ..\..\..\..\tags\release-%1\README.txt .
copy ..\..\..\..\tags\release-%1\ChangeLog.txt .


:end

pause